package com.taoist_awei.blog.core;

import org.springframework.stereotype.Component;

import java.util.Optional;

@Component
public interface UserRepository {
    Optional<UserEntity> findUserById(String id);

    Optional<UserEntity> findUserByEmail(String email);

    void save(UserEntity user);
}
